package com.xiejun.order.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;


@RestController
@RequestMapping("/order")
public class OrderController {

    @GetMapping("/orders")
    public List<String> getOrders() {
        return Arrays.asList("订单1", "订单2", "订单3");
    }

    @GetMapping("/hello")
    public String hello() {
        return "Hello from Order Service!";
    }
}